import axios from 'axios';

//获取列表
export const getList = (id:number) => {
    return (dispatch:any) => {
        axios.get('/api/list',{data:{id}}).then(res => {
            dispatch({type:'getList',list:res.data})
        })
    }
}